package com.swt.draw.service.impl;

import com.swt.draw.dao.HistoryMapper;
import com.swt.draw.service.HistoryService;
import com.swt.draw.vo.HistoryVO;
import com.swt.draw.vo.page.PageVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("historySerivce")
public class HistoryServiceImpl implements HistoryService{
    @Resource
    HistoryMapper historyMapper;

    @Override
    public List<HistoryVO> getHistoryList(String username, PageVO pageVO) {
        return historyMapper.getHistoryList(username, pageVO);
    }

    @Override
    public Long getHistoryCount(String username) {
        return historyMapper.getHistoryCount(username);
    }
}
